package com.zengjianjun.oss.config;

import com.zengjianjun.oss.platform.OssClient;
import com.zengjianjun.oss.properties.AliYunOssProperties;
import com.zengjianjun.oss.properties.AmazonS3Properties;
import com.zengjianjun.oss.properties.OssProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author zengjianjun
 */
@Configuration
@EnableConfigurationProperties({OssProperties.class, AliYunOssProperties.class, AmazonS3Properties.class})
public class OssClientAutoConfiguration {

    @Bean
    public OssClient ossClient() {
        return new OssClient();
    }
}
